﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeEdu.DTO
{
    using ServiceStack.OrmLite;
    using ServiceStack.DataAnnotations;

    /// <summary>
    /// 节点类型
    /// </summary>
    public class Node
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 课程Id
        /// </summary>
        public Guid CourseId { get; set; }

        /// <summary>
        /// 父级Id
        /// 为null时表示根目录
        /// </summary>
        public Nullable<Guid> ParentId { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public NodeType Type { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
